<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@ page import="java.util.Date"%>
<script type="text/javascript">
	$(document).ready(function() {
		$(function() {
			$('form').bind('submit', function() {
             $("#results").html("Submitting...");                       
				
				$.ajax({   
                    type: "POST",
                    data : $(this).serialize(),
                    cache: false,  
                    url: "settings.html",   
                    success: function(data){
                        $("#results").html(data);                       
                    }   
                });   
			return false;	
			});
		});
	});
</script>
<div id="settingstab" class="wrap">
	<s:form action="settings" name="settings" method="POST">
		<s:textfield label="EPPD Ip address" name="ipAddress" maxlength="15"></s:textfield>
		<s:textfield label="EPPD Port Number" name="portNumber" maxlength="4"></s:textfield>
		<s:textfield label="Username" name="username" maxlength="10"></s:textfield>
		<s:password label="Password" name="password" maxlength="10"
			required="true"></s:password>
		<button>Save Settings</button>
	</s:form>
	<div id="results"></div>
</div>
